class Base:
    def __init__(self):
        self.a = 1

class Derived(Base):
    def __init__(self):
        Base.__init__(self)

num = 0
for i in range(0, 1000000):
    obj = Derived()
    num += obj.a

print num
